import React from 'react';
// import './index.css';

export default class  extends React.Component {
    constructor(props){
        super();
        this.state={
            src:props.src,//头像
        }
    }
    UNSAFE_componentWillReceiveProps(props){
        this.setState({
            src:props.src,//头像
        })
    }
    //评论
    render(){
        return (
            <img src={this.state.src} className="UserHeader_Protrait" alt="user"/>
        );
    }
}

